import request from '@/utils/request'


/* 获取我的入企任务列表 */
export function getTaskList(query) {
	return request({
		url: '/mobile/taskList',
		method: 'post',
		data: query
	})
}

/* 确认入企 */
export function sureEnter(query) {
	return request({
		url: '/enterprise/task/mobile/confirm',
		method: 'post',
		data: query
	})
}

/* 结束入企 */
export function overEnter(query) {
	return request({
		url: '/enterprise/task/mobile/finish',
		method: 'post',
		data: query
	})
}


/* 获取入企人员信息 */
export function getSysUser(query) {
	return request({
		url: '/enterprise/task/mobile/getSysUser',
		method: 'get',
		params: query
	})
}


/* 获取子事项信息 */
export function getSubItem(id) {
	return request({
		url: '/enterprise/sub/item/getSubItem/' + id,
		method: 'get',
	})
}

/* 获取执法人员列表 */
export function getOfficialsList(query) {
	return request({
		url: '/law/enforcement/officials/mobile/list',
		method: 'get',
		params: query
	})
}

/* 获取临时入企信息*/
export function getEnterprise(query) {
	return request({
		url: '/enterprise/task/mobile/getEnterprise',
		method: 'get',
		params: query
	})
}

//查询入企事项
export function getMattersPage(params) {
	return request({
		url: '/enterprise/item/mobile/mobilePage',
		method: 'get',
		params: params
	})
}


/* 提交临时入企任务 */
export function mobileCreateTask(query) {
	return request({
		url: '/enterprise/task/mobile/fontCreate',
		method: 'post',
		data: query
	})
}

/* 提交评价 */
export function submitAppraise(query) {
	return request({
		url: '/enterprise/task/mobile/appraise',
		method: 'post',
		data: query
	})
}
// 行政区划
export function treeseDepart() {
	return request({
		url: '/administrative/division/tree',
		method: 'get'
	})
}


// 查询部门列表所有
export function listDeptAll(query) {
	return request({
		url: '/system/dept/listMobile',
		method: 'get',
		params: query
	})
}


// 获取我的营商码列表
export function getQrCodeList(data) {
	return request({
		'url': '/mobile/qrCode/list',
		'method': 'get',
		'data': data
	})
}

/* 获取新闻列表 */
export function getNewsList(query) {
	return request({
		url: 'https://test.clouder.cc:8443/content/page',
		method: 'get',
		params: query
	})
}


/* 提交企业心声 */
export function submitHeart(query) {
	return request({
		url: '/innermost/thoughts/mobile/create',
		method: 'post',
		data: query
	})
}

/* 获取企业心声列表 */
export function getHeartList(query) {
	return request({
		url: '/innermost/thoughts/mobile/page',
		method: 'get',
		data: query
	})
}

/* 获取企业心声详情 */
export function getHeartDetails(thoughtsNo) {
	return request({
		url: '/innermost/thoughts/mobile/detail/' + thoughtsNo,
		method: 'get',
	})
}






//发送短信验证码
export function sendSmsCode(data) {
	return request({
		'url': '/user/headSculpture/addHeadSculpture',
		'method': 'post',
		'data': data
	})
}

// 获取医生列表
export function getDoctorList(data) {
	return request({
		'url': '/project/doctorInfo/list',
		'method': 'get',
		'data': data
	})
}
//科室列表
export function getDeptList(data) {
	return request({
		'url': '/project/deptInfo/list',
		'method': 'get',
		'data': data
	})
}
//医生详情
export function getDoctorDetail(id) {
	return request({
		'url': '/project/doctorInfo/' + id,
		'method': 'get'
	})
}
//科室详情
export function getDeptDetail(id) {
	return request({
		'url': '/project/deptInfo/' + id,
		'method': 'get'
	})
}
//院内动态展示
export function getTrtendsList(data) {
	return request({
		'url': '/project/advice/list',
		'method': 'get',
		'data': data
	})
}
//就诊人信息列表
export function getVisitorList(data) {
	return request({
		'url': '/project/patientBase/list',
		'method': 'get',
		'data': data
	})
}
//患者自定义菜单保存
export function configMenuSave(data) {
	return request({
		'url': '/project/configMenu/addList',
		'method': 'post',
		'data': data
	})
}
//患者自定义菜单删除
export function configMenuDel(data) {
	return request({
		url: '/project/configMenu/' + data,
		method: 'delete'
	})
}

//患者自定义小菜单列表
export function getConfigMenuList(data) {
	return request({
		'url': '/project/configMenu/list',
		'method': 'get',
		'data': data
	})
}
//功能小菜单列表
export function getAllmenuFunction(data) {
	return request({
		'url': '/project/menuFunction/list',
		'method': 'get',
		'data': data
	})
}

//获取院内动态详情
export function getAdviceDetail(data) {
	return request({
		'url': '/project/advice/' + data,
		'method': 'get'
	})
}

//获取功能菜单列表
export function getFunctionList(data) {
	return request({
		'url': '/project/functionDetail/list',
		'method': 'get',
		'data': data
	})
}
//获取功能菜单详情
export function getFunctionDetail(data) {
	return request({
		'url': '/project/functionDetail/' + data,
		'method': 'get'
	})
}

//获取身体部位
export function getGuideBody(data) {
	return request({
		'url': '/project/guideBody/list',
		'method': 'get',
		'data': data
	})
}
//导诊症状查询
export function getGuideSymptom(data) {
	return request({
		'url': '/project/guideSymptom/list',
		'method': 'get',
		'data': data
	})
}
//科室排班时间轴
export function getScheduTimeAxis(data) {
	return request({
		'url': '/project/mobileSchedule/getScheduTimeAxis',
		'method': 'post',
		params: data
	})
}
//获取医生排班
export function getDoctorSchedule(data) {
	return request({
		'url': '/project/mobileSchedule/getDoctorSchedule',
		'method': 'post',
		params: data
	})
}
//医生排班号源
export function getScheduInfo(data) {
	return request({
		'url': '/project/mobileSchedule/getScheduInfo',
		'method': 'post',
		params: data
	})
}
//身体部位查询
export function guideBodyList(data) {
	return request({
		'url': '/project/guideBody/list',
		'method': 'get',
		'data': data
	})
}
//导诊症状查询
export function guideSymptomList(data) {
	return request({
		'url': '/project/guideSymptom/list',
		'method': 'get',
		'data': data
	})
}
//导诊症状问题对照
export function guideSymptomProblemList(data) {
	return request({
		'url': '/project/guideSymptomProblem/list',
		'method': 'get',
		'data': data
	})
}
//问题科室对照关系查询
export function guideProblemDeptList(data) {
	return request({
		'url': '/project/guideProblemDept/list',
		'method': 'get',
		'data': data
	})
}
//知识库科室和医院科室对照
export function guideThirdList(data) {
	return request({
		'url': '/project/guideThird/list',
		'method': 'get',
		'data': data
	})
}

//注册跳转小程序组件接口
export function jumpToProgram(data) {
	return request({
		'url': '/wechat/api/getJSWxConfig',
		'method': 'get',
		'data': data
	})
}

//查询某个医生排版
export function getScheduInfoList(data) {
	return request({
		'url': '/project/mobileSchedule/getScheduInfoList',
		'method': 'post',
		'params': data
	})
}
//号源模版列表查询
export function numberSourceTempList(query) {
	return request({
		url: '/project/numberSourceTemp/list',
		method: 'get',
		params: query
	})
}
//配置挂完号是否直接支付
export function getConfigKey(configKey) {
	return request({
		url: '/system/config/configKey/' + configKey,
		method: 'get'
	})
}